package com.xr.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xr.blog.dao.BlogLinkMapper;
import com.xr.blog.pojo.BlogLink;
import com.xr.blog.service.BlogLinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class BlogLinkServiceImpl extends ServiceImpl<BlogLinkMapper, BlogLink> implements BlogLinkService {

    @Autowired
    BlogLinkMapper linkMapper;
    @Override
    public List<BlogLink> findLinkByType(Integer type) {
        return list(new QueryWrapper<BlogLink>().eq("type",type));
    }
}